package org.example.pojos;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author : zhangbo
 * @data : 2024/7/30
 * @description :通用结果返回类
 */
@Data
public class ResultResponse {
    private boolean flag;
    private Object data;
    private String msg;
    public ResultResponse (){};

    public ResultResponse(Boolean flag){
        this.flag=flag;
    }
    public ResultResponse (Boolean flag,Object data){
        this.flag=flag;
        this.data=data;
    }
    public ResultResponse(Boolean flag,String msg){
        this.flag=flag;
        this.msg=msg;
    }
    public ResultResponse(Boolean flag,String msg,Object data){
        this.flag=flag;
        this.msg=msg;
        this.data=data;
    }
}
